import request from '@/utils/request'

export function fetchInWarehouseBillList(params) {
  return request({
    url: '/api/bill/inWareHouseBill/getList',
    method: 'post',
    params
  })
}

export function createInWareHouseBill(params) {
  return request({
    url: '/api/bill/inWareHouseBill/add',
    method: 'post',
    params
  })
}

export function updateInWareHouseBill(data) {
  return request({
    url: '/api/bill/inWareHouseBill/update',
    method: 'post',
    data
  })
}

export function deleteInWareHouseBill(params) {
  return request({
    url: '/api/bill/inWareHouseBill/delete',
    method: 'post',
    params
  })
}

export function fetchSelectItemList() {
  return request({
    url: '/api/bill/inWareHouseBill/fetchSelectItem',
    method: 'post',
  })
}